//
//  MRMConfig.m
//  MeiRiMoney
//
//  Created by qiuqk on 13-6-23.
//  Copyright (c) 2013年 MeiRiCai. All rights reserved.
//

#import "MRMConfig.h"
#import "UIDevice+IdentifierAddition.h"
#import "OpenUDID.h"

static OAConsumer *_Consumer = nil;
static NSString *_DeviceId = nil;

@implementation MRMConfig

+ (void)setConsumer:(NSString *) key withSecret:(NSString *) secret
{
	_Consumer = [[OAConsumer alloc] initWithKey:key secret:secret];
}

+ (OAConsumer *)getConsumer
{
	return _Consumer;
}

+ (NSString *)getConsumerKey
{
	return _Consumer.key;
}

+ (NSString *)getConsumerSecret
{
	return _Consumer.secret;
}

+ (NSString *)getDeviceId
{
	if (_DeviceId == nil)
	{
		//UIDevice *device = [UIDevice currentDevice];
		//_DeviceId = [device uniqueGlobalDeviceIdentifier2];
		
		_DeviceId = [OpenUDID value];
	}
	return _DeviceId;
}

+ (NSString *)domobPublisherId
{
	return @"96ZJ1kWAze23HwTAw5";
}

@end
